package com.lwisniewski.pg.pulsehematometry.serial.facade;

import gnu.io.CommPortIdentifier;

import java.io.InputStream;
import java.util.List;

public interface SerialPortReaderFacade {
	
	/**
	 * Main reader facade interfacing parsed 
	 * input from RS232 port with arguments
	 * ranging from 0 to 1023 char. 
	 */
	
	public InputStream getRs232InputStream();
	
	public CommPortIdentifier getActiveCommPortIdentifier();
	
	public List<CommPortIdentifier> getAvailablePortList();
	
	public void openPort(CommPortIdentifier id);
	
	public void closePort(CommPortIdentifier id);
	
}
